<?php 
use yii\helpers\Html;
use yii\widgets\LinkPager;

?>
<!-- 权限管理模块 -->
	<div class="check-div">
		<button class="btn btn-yellow btn-xs" data-toggle="modal" data-target="#addNode">添加权限</button>
	</div>
	<div class="data-div">
		<div class="row tableHeader">
			<div class="col-xs-1 ">
				编码
			</div>
			<div class="col-xs-2">
				权限名
			</div>
			<div class="col-xs-2">
				控制器
			</div>
			<div class="col-xs-2">
				方法
			</div>
			<div class="col-xs-3">
				描述
			</div>
			<div class="col-xs-2">
				操作
			</div>
		</div>
		<div class="tablebody">
		<?php foreach ($nodeDate as $k => $v) {?>
			<div class="row">
				<div class="col-xs-1 ">
					<?=$v['id'] ?>
				</div>
				<div class="col-xs-2">
					</span><span><?=$v['name'] ?></span>
				</div>
				<div class="col-xs-2">
					<?=$v['controller'] ?>
				</div>
				<div class="col-xs-2">
					<?=$v['action'] ?>
				</div>
				<div class="col-xs-3">
					<?=$v['describe'] ?>
				</div>
				<div class="col-xs-2">
					<button class="btn btn-success btn-xs" data-toggle="modal" data-target="#changeNode">修改</button>
					<button class="btn btn-danger btn-xs" data-toggle="modal" data-target="#deleteNode">删除</button>
				</div>
			</div>
		<?php } ?>
		</div>

	</div>
	<!--页码块-->
	
	<footer class="footer">
	
		<ul class="pagination">
			<li>
				<select>
					<option>1</option>
					<option>2</option>
					<option>3</option>
					<option>4</option>
					<option>5</option>
					<option>6</option>
					<option>7</option>
					<option>8</option>
					<option>9</option>
					<option>10</option>
				</select>
				页
			</li>
			<li class="gray">
				共20页
			</li>
			<li>
				<i class="glyphicon glyphicon-menu-left">
					</i>
			</li>
			<li>
				<i class="glyphicon glyphicon-menu-right">
					</i>
			</li>
		</ul>
	</footer>
	<!--增加权限弹出窗口-->
	<div class="modal fade" id="addNode" role="dialog" aria-labelledby="gridSystemModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="gridSystemModalLabel">添加权限</h4>
				</div>
				<div class="modal-body">
					<div class="container-fluid">
						<form class="form-horizontal">
							<div class="form-group ">
								<label for="sName" class="col-xs-3 control-label">权限名：</label>
								<div class="col-xs-6 ">
									<input type="email" class="form-control input-sm duiqi" id="sName" placeholder="">
								</div>
							</div>
							<div class="form-group">
								<label for="sLink" class="col-xs-3 control-label">描述：</label>
								<div class="col-xs-6 ">
									<textarea class="form-control input-sm duiqi"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label for="sOrd" class="col-xs-3 control-label">系统资源：</label>
								<div class="col-xs-6">
									<input type="" class="form-control input-sm duiqi" id="sOrd" placeholder="">
								</div>
							</div>

						</form>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-xs btn-white" data-dismiss="modal">取 消</button>
					<button type="button" class="btn btn-xs btn-green">保 存</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
	<!-- /.modal -->

	<!--修改权限弹出窗口-->
	<div class="modal fade" id="changeNode" role="dialog" aria-labelledby="gridSystemModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="gridSystemModalLabel">修改权限</h4>
				</div>
				<div class="modal-body">
					<div class="container-fluid">
						<form class="form-horizontal">
							<div class="form-group ">
								<label for="sName" class="col-xs-3 control-label">权限名：</label>
								<div class="col-xs-6 ">
									<input type="email" class="form-control input-sm duiqi" id="sName" placeholder="">
								</div>
							</div>
							<div class="form-group">
								<label for="sLink" class="col-xs-3 control-label">描述：</label>
								<div class="col-xs-6 ">
									<textarea class="form-control input-sm duiqi"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label for="sOrd" class="col-xs-3 control-label">系统资源：</label>
								<div class="col-xs-6">
									<input type="" class="form-control input-sm duiqi" id="sOrd" placeholder="">
								</div>
							</div>

						</form>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-xs btn-white" data-dismiss="modal">取 消</button>
					<button type="button" class="btn btn-xs btn-green">保 存</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
	<!-- /.modal -->

	<!--弹出删除权限警告窗口-->
	<div class="modal fade" id="deleteNode" role="dialog" aria-labelledby="gridSystemModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="gridSystemModalLabel">提示</h4>
				</div>
				<div class="modal-body">
					<div class="container-fluid">
						确定要删除该权限？删除后不可恢复！
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-xs btn-white" data-dismiss="modal">取 消</button>
					<button type="button" class="btn btn-xs btn-danger">保 存</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
	<!-- /.modal -->
